﻿function start() {
    cm.sendSimple("哈囉 #b#h ##k,\r\n\r\n你需要什麼服務?\r\n\#L2#點滿現在職業的技能\r\n\#L6#修復4轉沒有的技能/學習怪物騎乘/學習飛天騎乘");//\r\n#L1##r幻影#k無法偷技能修復\r\n#L3#清除點滿技能(#r請謹慎使用#k)#k
}

function action(mode, type, selection) {
    cm.dispose();
    if (selection == 1) {
        var j = cm.getPlayer().getJob();
        if (j == 2003 || j >= 2400 && j <= 2412) {
            cm.getPlayer().PhantomSkillsFix();
            cm.sendOk("修復成功");
            cm.dispose();
        } else {
            cm.sendOk("您不是幻影唷")
            cm.dispose();
        }
    } else if (selection == 2) {
        cm.maxSkillsByJob();
        cm.teachSkill(4341009, 30, 30);//幻影箭
        cm.teachSkill(4341000, 30, 30);//楓葉祝福
        cm.teachSkill(2321007, 30, 30);//天使之箭
        cm.teachSkill(21120007, 30, 30);//宙斯之盾
        cm.teachSkill(4341002, 30, 30);//絕殺刃
        cm.teachSkill(22171003, 30, 30);//火輪舞
        cm.teachSkill(22181003, 30, 30);//靈魂之石
        cm.teachSkill(22181002, 30, 30);//龍神之怒     
        if (cm.getJob() >= 430 && cm.getJob() <= 434) {
            cm.teachSkill(4301002, 10, 10);//神速雙刀 
        }
        cm.teachSkill(1003, 1, 1);//神匠之魂
        cm.teachSkill(10001003, 1, 1);//神匠之魂 
        cm.teachSkill(20001003, 1, 1);//神匠之魂
        cm.teachSkill(20011003, 1, 1);//神匠之魂
        cm.teachSkill(20021003, 1, 1);//神匠之魂
        cm.teachSkill(20031003, 1, 1);//神匠之魂
        cm.teachSkill(20041003, 1, 1);//神匠之魂
        cm.teachSkill(30001003, 1, 1);//神匠之魂
        cm.teachSkill(30011003, 1, 1);//神匠之魂
        cm.teachSkill(50001003, 1, 1);//神匠之魂 
        cm.teachSkill(60011003, 1, 1);//神匠之魂
        cm.teachSkill(12, 20, 20);//精靈的祝福
        cm.teachSkill(10000012, 20, 20);//精靈的祝福
        cm.teachSkill(20000012, 20, 20);//精靈的祝福
        cm.teachSkill(20010012, 20, 20);//精靈的祝福
        cm.teachSkill(20020012, 20, 20);//精靈的祝福
        cm.teachSkill(20030012, 20, 20);//精靈的祝福
        cm.teachSkill(30000012, 20, 20);//精靈的祝福
        cm.teachSkill(30010012, 20, 20);//精靈的祝福
        cm.teachSkill(50000012, 20, 20);//精靈的祝福
        cm.teachSkill(60010012, 20, 20);//精靈的祝福
        cm.teachSkill(60000012, 20, 20);//精靈的祝福
        cm.teachSkill(40020012, 20, 20);//精靈的祝福
        cm.teachSkill(30020012, 20, 20);//精靈的祝福
        cm.teachSkill(20040012, 20, 20);//精靈的祝福
        cm.getPlayer().resetSP(0);
        cm.sendOk("已經完成職業技能點滿.");
        cm.dispose();
    } else if (selection == 6) {
        cm.teachSkill(13111002, 30, 30);
        cm.teachSkill(13110003, 20, 20);
        cm.teachSkill(4341009, 30, 30);//幻影箭
        cm.teachSkill(21120005, 30, 30);//終極之矛
        cm.teachSkill(1120003, 30, 30);//進階鬥氣
        cm.teachSkill(1121000, 30, 30);//楓葉祝福
        cm.teachSkill(1221000, 30, 30);
        cm.teachSkill(1321000, 30, 30);
        cm.teachSkill(2121000, 30, 30);
        cm.teachSkill(2221000, 30, 30);
        cm.teachSkill(2321000, 30, 30);
        cm.teachSkill(3121000, 30, 30);
        cm.teachSkill(3221000, 30, 30);
        cm.teachSkill(4121000, 30, 30);
        cm.teachSkill(4221000, 30, 30);
        cm.teachSkill(4341000, 30, 30);
        cm.teachSkill(5121000, 30, 30);
        cm.teachSkill(5221000, 30, 30);
        cm.teachSkill(5321005, 30, 30);
        cm.teachSkill(5721000, 30, 30);
        cm.teachSkill(5821000, 30, 30);
        cm.teachSkill(5921000, 30, 30);
        cm.teachSkill(21121000, 30, 30);
        cm.teachSkill(23121005, 30, 30);
        cm.teachSkill(24121008, 30, 30);
        cm.teachSkill(31121004, 30, 30);
        cm.teachSkill(32121007, 30, 30);
        cm.teachSkill(33121007, 30, 30);
        cm.teachSkill(35121007, 30, 30);
        cm.teachSkill(51121005, 30, 30);
        cm.teachSkill(100, 30, 30);
        cm.teachSkill(10000100, 30, 30);
        cm.teachSkill(20000100, 30, 30);
        cm.teachSkill(20010100, 30, 30);
        cm.teachSkill(21120006, 30, 30);
        cm.teachSkill(30000100, 30, 30);
        cm.teachSkill(50000100, 30, 30);
        cm.teachSkill(20031208, 30, 30);//幻影技能管理
        cm.teachSkill(20031207, 30, 30);
        cm.teachSkill(20031205, 30, 30);
        cm.teachSkill(20031210, 1, 1);
        cm.teachSkill(30001068, 30, 30);//機甲衝鋒
        cm.teachSkill(80001000, 1, 1);
        cm.teachSkill(12111003, 20, 20);
        cm.teachSkill(12111004, 20, 20);
        cm.teachSkill(22170001, 30, 30);
        cm.teachSkill(20030206, 30, 30);
        cm.teachSkill(20031207, 1, 1);
        cm.teachSkill(20031208, 1, 1);
        cm.teachSkill(20030206, 1, 1);
        cm.teachSkill(20031208, 1, 1);
        cm.teachSkill(80000002, 1, 1);
        cm.teachSkill(20031203, 1, 1);
        cm.teachSkill(10001142, 1, 1);
        cm.teachSkill(20001142, 1, 1);
        cm.teachSkill(30001142, 1, 1);
        cm.teachSkill(1220010, 30, 30);
        cm.teachSkill(24121009, 5, 5);
        cm.getPlayer().resetSP(0);
        cm.sendOk("已經修復完成/已會怪物騎乘/已會飛天騎乘.");
        /*} else if (selection == 3) {
         cm.clearSkills();
         cm.sendOk("已經完成清除點滿技能.");
         } else if (selection == 4) {
         cm.sendOk("I have cleared your AP/SP. Enjoy ");
         cm.reloadChar();
         cm.getPlayer().resetStats();
         cm.getPlayer().resetAPSP();
         cm.dispose();*/
    }

}